package com.example.teacher;

import android.app.Application;
import android.content.Context;
import android.util.Log;

import com.orhanobut.hawk.Hawk;

import java.io.IOException;
import java.util.concurrent.TimeUnit;

import okhttp3.ConnectionPool;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;

public class TeacherApp  extends Application {

    private static Context context;
    private static TeacherApp teacherApp = null;

    public static Context getContext() {

        return context;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        teacherApp = this;
        context = getApplicationContext();
        Hawk.init(this).build();

    }

    public static TeacherApp getInstance() {
        return teacherApp;
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);

    }


}
